#define _CRT_SECURE_NO_WARNINGS
#include"List.h"
void test01()
{
	//LTNode* node = NULL;
	//LTInit(&node);
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);
	//LTPushFront(plist, 6);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist); 
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);


	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);


	LTInsert(LTFind(plist,3), 9);
	LTPrint(plist);
	LTInsert(LTFind(plist, 3), 111);
	LTPrint(plist);
	LTErase(LTFind(plist, 111));
	LTPrint(plist);
	LTErase(LTFind(plist, 9));
	LTPrint(plist);


	LTDestroy(plist);
	plist = NULL;
	LTPrint(plist);
}
int main()
{
	test01();
	return 0;
}